﻿import com.dinmax.flash.common.collection.*
import com.dinmax.flash.central.extension.*

class Extensions extends Collection {
	
	function Extensions(){
		super();
	};

	public function addItem(key:String, value:Extension ):Void {
		super.addItem(key, value);
		
	}; //fin funci
	public function getItem(key:String):Extension {
		return Extension(super.getItem(key).getValue());
	}; //fin funci
	
	public function getItems():Array {
		var a:Array=super.getItems();
		var b:Array=new Array();
		for(var i:Number=0; i < a.length; i++){
			b.push(a[i].getValue());
		};
		return b;
	}; //fin funci
	
	public function removeExtension(xt:Extension):Void {
		for (var i:Number=0; i < super.getItems().length ; i++ ) {	
			if(xt == super.getItems()[i].getValue()){
				super.removeItem(super.getItems()[i].getKey());
			};
		};

	}; //fin funci	

}; // fin de clase